#pragma once

#include "form/IMenuBar.h"
#include "ControlBar.h"

class MenuBar: public ControlBar<IMenuBar>
{
public:
	BEGIN_DEFINE_CLASS(CLSID_MenuBar)
		DEFINE_INTERFACE_ENTRY(IMenuBar)
		USE_INTERFACE_ENTRY(ControlBar<IMenuBar>)
	END_DEFINE_CLASS()

	MenuBar();
	virtual ~MenuBar();

	virtual IMenu* Add(const String& insertpath);
	virtual IMenu* AddPopup(const String& insertpath);

	virtual uint32 SelectMenus(kTargetFrame frame,ControlList& controls) const;
};

AUTO_REGISTER_CLASSMAP_ENTRY(MenuBar)